* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    scroll-behavior: smooth;

    --main-dark-color: rgb(37, 36, 35);
    --main-light-color: rgba(237, 230, 217);
}

body {
    margin: 0;
    background-color:var(--main-light-color);
}

.main_container {
    width: 100%;
    max-width: 1024px;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
}

.common_title {
    font-size: 48px;
    margin-bottom: 36px;
    font-weight: 800;

    position: relative;

    width: calc(100% + 16px);
    margin-left: -16px;
    padding-left: 16px;

    opacity: 0;
    visibility: hidden;
    bottom: -48px;

    transition: all .8s;
}

.common_title.showed {
    opacity: 1;
    visibility: visible;
    bottom: 0;
}

.common_title.white:before {
    position: absolute;
    display: block;
    content: '';

    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;

    width: 42px;
    height: 58px;
    top: 0;
    left: -32px;

    background-image: url('./candleWhite.png');
}

.common_title.black:before {
    position: absolute;
    display: block;
    content: '';
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    width: 42px;
    height: 58px;
    top: 0;
    left: -32px;
    background-image: url(./candle.png);

}
.right_title{
    font-size: 48px;
    margin-bottom: 36px;
    font-weight: 800;

    position: relative;

    width: calc(100% + 16px);
    margin-left: -16px;
    padding-left: 16px;

    opacity: 0;
    visibility: hidden;
    left: -50px;
    bottom: 0px;

    transition: all .8s;
}

.right_title.showed {
    opacity: 1;
    visibility: visible;
    left: 0px;
}

.section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.section.tales{
    background-color: var(--main-light-color);
}
.section.footer{
    background-color: var(--main-dark-color);
}
.section_fresh{
    position: relative;
    border-top: 2px solid var(--main-dark-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 1.5s;
}
.section_fresh.active{
    max-height: 200vh;
    padding: 96px 0;
}

.fresh_title{
    text-align: left;
    color: var(--main-dark-color);
    border-left:1px solid var(--main-dark-color);
}

.fresh_cards{
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    width: 100%;

}

.fresh_card{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 300px;
    gap: 10px;
    height: 300px;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-light-color);
    z-index: 10;
    border-bottom: 1px solid var(--main-dark-color);

    transition: all .2s;
}

.header.disabled {
    top: -64px;
}

.header_logo {
    width: 52px;
    height: 52px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('./manaf.png');
}

.main_container.header_container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.header_menu {
    display: flex;
    gap: 24px;
    align-items: center;
    align-content: center;
}

.header_item {
    font-size: 16px;
    color: var(--main-dark-color);
    outline: none;
    text-decoration: none;
    text-transform: none;
}

.header .footer_social {
    width: 20px;
    height: 20px;
    background-color: var(--main-light-color);
    background-size: contain;
}

.preview {
    width: 100%;
    height: 100vh;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.preview_image {
    position: absolute;
    left: 0;
    top: 0;
}

.preview_content {
    max-width: 950px;
    padding-left: 16px;
    padding-right: 16px;
}

.preview_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./preview.jpg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.1);
}

.preview_content {
    position: relative;
    z-index: 2;
}

.preview__title {
    color: var(--main-light-color);
    font-size: 56px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--main-light-color);
}

.preview__subtitle {
    font-size: 16px;
    color: var(--main-light-color);
    line-height: 28px;
    text-align: center;
}

.collection_title {
    text-align: left;
    color: var(--main-dark-color);
    border-left: 1px solid var(--main-dark-color);
}

.collection_tabs {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.collection_tabs_item {
    font-size: 24px;
    color: var(--main-dark-color);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--main-light-color);
    cursor: pointer;
    transition: all .15s;
}

.collection_tabs_item.active {
    border-bottom: 1px solid var(--main-dark-color);
}

.collection_tabs_item:hover {
    border-bottom: 1px solid grey;
}

.collection_gallery {
    position: relative;
    height: 500px;
    width: 100%;
    margin-top: 32px;
}

.collection_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    height: 100%;

    top: 0;
    left: 0;
    position: absolute;
    transition: all .2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
}


.collection_cards.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.collection_card {
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    background-size: cover;
    width: calc(33.33% - 48px / 3);
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collection_card_image {
    width: 100%;
    height: 357px;
    border-radius: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.collection_card_title {
    text-align: center;
    font-size: 20px;

    height: 49px;
    color: var(--main-dark-color);
}

.collection_card_button {
    text-align: center;
    padding: 12px;
    border: 1px solid var(--main-dark-color);

    cursor: pointer;

    background-color: var(--main-light-color);

    transition: all .2s;
}

.collection_card_button:hover {
    background-color: var(--main-dark-color);
    color: var(--main-light-color);
}

.taste {
    background-color: var(--main-dark-color);
}

.taste_title {
    color: var(--main-light-color);
    border-left: 1px solid var(--main-light-color);
}

.taste_cards {
    width: 100%;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.taste_card {
    width: calc(33% - 48px / 2);
    height: 70px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.501);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--main-light-color);

    transition: all .2s;
}

.taste_card.active {
    background-color: var(--main-light-color);
    color: var(--main-dark-color);
}

.taste_card_title {
    font-size: 20px;
}

.taste_card:hover {
    border: 1px solid rgba(255, 255, 255, 1);
}

.taste_content {
    width: 100%;
    margin-top: 48px;

    display: flex;
    gap: 64px;
}

.taste_content_left {
    width: calc(50% - 32px);
    height: 450px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    border-radius: 24px;
}

.taste_content_right {
    width: calc(50% - 32px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}

.taste_content_right_title {
    font-size: 32px;
    width: calc(100% - 16px);
    margin-left: -16px;
    padding-left: 16px;
    font-weight: 700;
    color: var(--main-light-color);
    border-left: 1px solid var(--main-light-color);
}

.taste_content_right_wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.taste_content_right_note {
    color: var(--main-light-color);
    font-size: 16px;
    padding-left: 12px;
    margin: 0;
    line-height: 28px;
}

.taste_content_right_description {
    color: var(--main-light-color);
    font-size: 16px;
    line-height: 28px;
}

.types_title {
    color: var(--main-dark-color);

    border-left: 1px solid var(--main-dark-color);
}

.types_cards {
    display: flex;
    gap: 48px;

    flex-wrap: wrap;
}

.types_card {
    width: calc(50% - 24px);
    height: 300px;

    gap: 24px;

    display: flex;
    align-items: center;
}

.types_image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.types_card_content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.types_card_title {
    font-weight: 600;
    font-size: 20px;
    color: var(--main-dark-color);
}

.types_card_description {
    font-size: 16px;
}


.about_content {
    width: 100%;
    display: flex;
    gap: 64px;
}

.about_content_left {
    width: calc(50% - 32px);
    height: 450px;

    border-radius: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    background-image: url('./manaf.png');
}
.contacts{
    background-color: var(--main-dark-color);
}

.contacts_content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 64px;
    color: var(--main-light-color);
}

.contacts_content_right {
    width: calc(50% - 32px);
    height: 450px;
    right: 0;

    border-radius: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    background-image: url('./manafw.jpg');
}

.contacts_content_text > a{
    color: rgba(255, 231, 186, 0.342);
    transition: all 0.3s;
}

.contacts_content_text > a:hover{
    color: rgb(255, 166, 0);
}

.contacts_content_text > p{
    width: fit-content;
    font-size: 25px;
    user-select: none;
    border-bottom: 1px solid var(--main-light-color);
}

.contacts_content_text{
    font-size: 30px;
}

.contacts_content_right_description{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts_content_left {
    width: calc(50% - 24px);
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.contacts_title {
    border-left: 1px solid var(--main-light-color);
}

.about_content_right {
    width: calc(50% - 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.about_title {
    border-left: 1px solid var(--main-dark-color);
    color: var(--main-dark-color);
}

.about_content_right_description {
    color: var(--main-dark-color);
    font-size: 16px;
    line-height: 28px;
}

.about_content_telegram{
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 20px;
}

.footer_container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--main-light-color);
}

.footer_subscribe {
    font-size: 16px;
}

.footer_bootom {
    color: var(--main-light-color);
}

.footer_socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.footer_social {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    text-transform: none;
    outline: none;
}

.contacts_social{
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    text-transform: none;
    outline: none;
}


.tales_title {
    border-left: 1px solid var(--main-dark-color);
    color: var(--main-dark-color);
}

.tale_icon {
    width: 32px;
    height: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.tale {
    color: var(--main-dark-color);
    padding-left: 12px;
    padding-right: 12px;
}

.tales_description {
    color: var(--main-dark-color);
    font-size: 20px;
    margin-bottom: 32px;
}

.tales_list {
    border: 1px solid var(--main-dark-color);
    border-radius: 24px;
}

.tale_title {
    font-size: 24px;
    font-weight: 600;
    gap: 8px;
    height: 72px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;

    position: relative;

    cursor: pointer;
}

.tale_arrow {
    position: absolute;
    right: 0;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tale_arrow:before {
    content: '';
    display: block;
    width: 100%;
    position: relative;
    left: 3px;
    border-radius: 5px;
    height: 2px;
    background-color: var(--main-dark-color);
    transform: rotate(45deg);
}

.tale_arrow:after {
    content: '';
    display: block;
    width: 100%;
    position: relative;
    right: 3px;
    border-radius: 5px;
    height: 2px;
    background-color: var(--main-dark-color);
    transform: rotate(-45deg);
}

.tale_content {
    /* transition: all .3s linear; */
    padding-bottom: 0;

    font-size: 16px;

    max-height: 0px;
    overflow: hidden;
}

.tale_content_text {
    margin-bottom: 12px;
}

.tale_image {
    width: 350px;
    height: 350px;
    float: left;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 12px;
    margin-right: 12px;
}

.tale.active .tale_content {
    max-height: 1500px;
    padding-bottom: 24px;
}


.tale.active .tale_arrow {
    transform: rotate(180deg);
}

.tale:not(:last-child) .tale_content {
    border-bottom: 1px solid var(--main-dark-color);
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;

    transition: all .2s;

    opacity: 0;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: all;
}

.modal_bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.875);
    z-index: 10;
}

.modal_content {
    width: calc(100% - 32px);
    max-width: 1024px;
    height: 550px;
    background-color: var(--main-light-color);
    z-index: 11;

    padding: 24px;
    position: relative;
}

.modal_content {
    display: flex;
    gap: 36px;
}

.modal_image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    width: calc(50% - 18px);
    height: 100%;
}

.modal_text {
    width: calc(50% - 18px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.modal_text_title {
    font-size: 32px;
    width: calc(100% - 16px);
    margin-left: -16px;
    padding-left: 16px;
    font-weight: 700;
    color: var(--main-dark-color);
    border-left: 1px solid var(--main-dark-color);
}

.modal_text_wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal_text_note {
    color: var(--main-dark-color);
    font-size: 16px;
    padding-left: 12px;
    margin: 0;
    line-height: 28px;
}

.modal_text_description {
    color: var(--main-dark-color);
    font-size: 16px;
    line-height: 28px;
}

@media (max-width: 1024px) {
    .preview__title {
        font-size: 48px;
    }

    .preview__subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    .section_fresh.active{
        padding: 48px 0;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .common_title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .collection_tabs_item {
        font-size: 20px;
        padding-bottom: 6px;
    }

    .collection_gallery {
        margin-top: 24px;
    }

    .collection_card {
        gap: 16px;
        height: 470px;
    }

    .collection_card_image {
        height: 350px;
        border-radius: 16px;
    }

    .collection_card_title {
        font-size: 16px;
    }

    .collection_card_button {
        padding: 8px;
        font-size: 16px;
    }

    .taste_cards {
        gap: 16px;
    }

    .taste_card {
        height: 52px;
        width: calc(33% - 18px / 2);
    }

    .taste_card_title {
        font-size: 16px;
    }

    .taste_content {
        gap: 32px;
    }

    .taste_content_left {
        height: 350px;
        border-radius: 20px;
    }

    .taste_content_right_title {
        font-size: 24px;
    }

    .taste_content_right {
        gap: 20px;
    }

    .taste_content_right_note {
        font-size: 12px;
        line-height: 20px;
    }

    .taste_content_right_description {
        font-size: 12px;
        line-height: 20px;
    }

    .types_cards {
        gap: 24px;
    }

    .types_image {
        width: 180px;
        height: 180px;
    }

    .types_card {
        gap: 12px;
        height: 180px;
        width: calc(50% - 12px);
    }

    .types_card_title {
        font-size: 18px;
    }

    .types_card_description {
        font-size: 14px;
    }

    .about_content {
        gap: 32px;
    }

    .about_content_left {
        height: 300px;
    }

    .about_content_right_description {
        font-size: 14px;
        line-height: 22px;
    }

    .tales_description {
        font-size: 16px;
    }

    .footer_subscribe {
        font-size: 14px;
    }

    .modal_content {
        flex-direction: column;
        gap: 24px;
        max-height: calc(100vh - 24px);
        height: max-content;
        overflow: scroll;
    }

    .modal_image {
        width: 100%;
        height: 450px;
    }
    
    .modal_text {
        width: 100%;
        gap: 24px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .preview__title {
        font-size: 32px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .collection_tabs_item {
        min-width: max-content;
    }

    .collection_tabs {
        overflow: scroll;
    }

    .section {
        padding-top: 36px;
        padding-bottom: 36px;

    }
    .section_fresh.active{
        padding: 36px 0;
    }

    .main_container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header_menu {
        display: none;
    }

    .common_title {
        width: calc(100% + 12px);
        margin-left: -12px;
        padding-left: 12px;
        border: none!important;
        margin-bottom: 20px;
    }

    .collection_card {
        width: calc(50% - 12px);
    }

    .taste_card {
        width: calc(50% - 8px);
    }

    .taste_content {
        flex-direction: column;
        margin-top: 24px;
    }

    .taste_content_left {
        width: 100%;
    }

    .taste_content_right {
        width: 100%;
    }

    .taste_content_right_title {
        border-left: none;
    }

    .types_card {
        width: 100%;
    }

    .about_content {
        flex-direction: column;
    }

    .about_content_left {
        width: 100%;
    }

    .about_content_right {
        width: 100%;
    }

    .about_content {
        gap: 24px;
    }

    .contacts_content{
        flex-wrap: wrap;
    }

    .contacts_content_right{
        width: 100%;
    }

    .contacts_content_left{
        width: 100%;
    }

    .tales_description {
        margin-bottom: 20px;
    }

    .tale_title {
        font-size: 20px;
        height: 60px;
    }

    .tale_icon {
        width: 24px;
        height: 24px;
    }

    .tale_arrow {
        width: 24px;
        height: 24px;
        top: 18px;
    }

    .tale_arrow:before {
        left: 2px;
    }

    .tale_arrow:after {
        right: 2px;
    }

    .footer_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer_container {
        gap: 16px;
    }

    .footer_socials {
        justify-content: flex-start;
    }

    .modal_content {
        gap: 20px;
        padding: 16px;
    }

    .modal_text {
        gap: 16px;
    }

    .modal_text_title {
        border-left: none;
    }
}

@media (max-width: 600px) {
    .tale_image {
        width: 250px;
        height: 250px;
    }

    .modal_image {
        width: 100%;
        height: 300px;
    }

    .contacts_content_right{
        width: 100%;
        height: 300px;
    }

    .modal_text_description {
        font-size: 14px;
        line-height: 20px;
    }

    .modal_text_note {
        font-size: 14px;
        line-height: 20px;
    }

    .modal_text_title {
        font-size: 24px;
    }
}


@media (max-width: 465px) {
    .collection_card {
        width: 100%;
    }

    .tale_image {
        width: 100%;
        height: 300px;
        margin-bottom: 24px;
        float: none;
    }

    .taste_card {
        min-width: max-content;
    }

    .taste_cards {
        overflow: scroll;
        flex-wrap: nowrap;
    }

    .modal_image {
        height: 250px;
    }
}

